package com.sample.order.feign;

import com.sample.order.config.MultipartSupportConfig;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "seata-account",configuration = MultipartSupportConfig.class)
public interface AccountFeignClient {

    @GlobalTransactional
    @GetMapping("/test")
    void test(@RequestParam("userId") String userId);

}
